<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<s:include value="/common/base.jsp"/>
<base href="<%=request.getAttribute("basepath")%>"/>

<link rel="stylesheet" type="text/css" href="deeptree/deeptree.css">
<link rel="stylesheet" type="text/css" href="layout.css">
<link rel="STYLESHEET" type="text/css" href="template/dhtmlxTree/dhtmlxtree.css">
<script src="template/dhtmlxTree/dhtmlxcommon.js"></script>
<script src="template/dhtmlxTree/dhtmlxtree.js"></script>
</head>
<script language="JavaScript">
<!--
function key(){

}
document.onkeydown=key;
if (window.Event)
document.captureEvents(Event.MOUSEUP);
//swordmaple javascript article.
//from www.jx165.com
function nocontextmenu(){
event.cancelBubble = true
event.returnValue = false;
return false;}
function norightclick(e){
if (window.Event){
if (e.which == 2 || e.which == 3)
return false;}
else
if (event.button == 2 || event.button == 3){
event.cancelBubble = true
event.returnValue = false;
return false;}
}
//禁止右键
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others
//-->
</script>
<body bgcolor="#E4F0FC" leftmargin="5" topmargin="0" marginwidth="0" marginheight="0" class="leftmenu-body" onselectstart="return false;" onpaste="return false;" onload="loadTree();">
<script>
String.prototype._dhx_trim = function(){
    return this.replace(/&nbsp;/g," ").replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"");
}
 
 /* init tree */
 var tree; 
function loadTree(){
    tree=new dhtmlXTreeObject("doctree_box","100%","100%",0);
    tree.setImagePath("template/dhtmlxTree/imgs/");    <!-- 注意此处的路径需要根据各自具体情况修改 -->
    tree.setOnClickHandler(
        function(id){ openPathDocs(id); }
    );
    tree.loadXML("common/left-menu.eos");
 }
/* open path funtion */
function openPathDocs(id){
    if (tree.getUserData(id, "thisurl") != null ){
        window.top.top.frames["fraRightContentFrame"].frames["fraRightFrame"].fraContent.location.href =  tree.getUserData(id, "thisurl");
        return;
    }
}
function autoselectNode(){
    tree.selectItem(node,true);
    tree.openItem(node);
}
</script>

<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td valign="top" align="left">
            <div id="doctree_box" style="width: 100%; height: 100%;"></div>
        </td>
    </tr>
</table>
</body>
</html>